<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>博客管理界面</title>
<link rel="stylesheet" href="bs/css/bootstrap.css">
<script src="bs/js/jquery-3.3.1.min.js"></script>
<script src="bs/js/bootstrap.min.js"></script>
<style>
.container {
	margin-top: 30px;
	width: 1280px !important;
	max-width: none !important;
}

.row {
	margin-bottom: 15px;
}

.articletable {
	margin-top: 70px;
}
</style>
</head>
<body>
	<div class="container">
		<div>
			<h2>
				<small>Author:${sessionScope.ADMIN_IN_SESSION.username}</small>
			</h2>
		</div>
		<div align="right">
			<a href="/admin">注销登录</a>
		</div>
		<div class="btn-group btn-group-justified">
			<div class="btn-group">
				<a href="/checklogin"><button class="btn btn-danger">博客</button></a>
			</div>
			<div class="btn-group">
				<a href="/msg"><button class="btn btn-primary">留言板</button></a>
			</div>
			<div class="btn-group">
				<a href="/sharemusic"><button class="btn btn-warning">音乐分享</button></a>
			</div>
			<div class="btn-group">
				<a href="/sharemovie"><button class="btn btn-active">电影分享</button></a>
			</div>
			<div class="btn-group">
				<a href="#"><button class="btn btn-success">密码修改</button></a>
			</div>
		</div>
		<div style="position: relative; top: 10%">
			<c:if test="${!empty isSuccess}">
				<div class="alert alert-warning" role="alert">${isSuccess}</div>
			</c:if>
		</div>

		<div class="col-xs-6" style="margin-top: 40px">
			<form action="/changePassword" method="post"
				enctype="application/x-www-form-urlencoded">
				<input type="hidden" value="${ADMIN_IN_SESSION.id}" name="id">

				<div class="form-group">
					<label for="">原始密码</label> <input type="password"
						class="form-control" placeholder="password" name="old"
						required="required">
				</div>
				<div class="form-group" id="">
					<label for="">新密码:</label> <input type="password"
						class="form-control" required="required" placeholder="password"
						name="new1">
				</div>
				<div class="form-group" id="">
					<label for="">再次确认密码:</label> <input type="password"
						class="form-control" required="required" placeholder="password"
						name="new2">
				</div>
				<div class="form-group">
					<button type="submit" class="btn btn-danger">OK</button>
					<button type="reset" class="btn">Cancel</button>
				</div>
			</form>
		</div>
	</div>
</body>
</html>